:root {
  --green: #5dc53b; /* #4fffa6;*/

  /* Light theme settings */
  --background-light: #fdfdff;
  --border-light: #d3d3e5;
  --darker-light: #f3f3f7;
  --button-light: #fdfdff;

  /* Dark theme settings */
  --background-dark: #24242e;
  --border-dark: #1b1b1d;
  --color-dark: #dfdfdf;
  --lighter-dark: #2a2a38;
  --gutter-dark: var(--lighter-dark);

  /* Generic settings */
  --sans-serif: 'San Francisco', 'Gadugi', sans-serif;
  --margin-base: 8px;
  --label-width: 100px;
}

* {
  box-sizing: border-box;
}

*,
*:focus,
*:hover {
  outline: none;
}

body {
  font-family: var(--sans-serif);
  padding: 0;
  margin: 0;
  background: var(--background-light);
}

a,
a:visited,
a:focus,
a:hover {
  color: blue;
}

.button {
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--button-light);
}

.loading {
  text-align: center;
  margin: 100px auto;
}

li {
  padding: 5px 0;
}

.app--desktop,
.app--server {
  border-top: 1px solid var(--border-light);
  height: calc(100% - 1px);
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app main {
  display: flex;
  width: 100%;
  flex: 1;
}

.app--dashboard main {
  margin: 0 auto;
  width: initial;
  display: block;
}

.view {
  /* Very important! Gives the main panel list it's overflow so it scrolls independent of the sidebar */
  height: 100%;
}

/* Correct for header height */
.app--server .view,
.app--browser .view {
  height: calc(100% - 39px);
}

.banner {
  padding: 3px 15px;
  color: white;
  background: black;
  font-size: 0.9rem;

  a {
    color: white;
    padding-left: 3px;
  }

  .button {
    background: transparent;
    margin-right: 10px;
    color: white;
  }
}

.main-body {
  flex: 1;
  overflow-y: auto;
}

header {
  background: var(--background-light);
  padding: var(--margin-base) calc(2 * var(--margin-base));
  border-bottom: 2px solid #e5e5ec;
  color: black;
}

header a.logo {
  color: black;
}

header a {
  text-decoration: none;
}

header .button,
header a {
  display: inline-block;
}

header .vertical-align-center a:not(.stars) {
  margin-right: calc(2 * var(--margin-base));
}

header iframe {
  margin-left: calc(2 * var(--margin-base));
}

.header-project-name {
  padding-right: calc(2 * var(--margin-base));
}

.editor {
  background: var(--background-light);
  width: 100%;
  border: 0;
  font-family: monospace;
  font-size: 1.1rem;
  counter-reset: line;
  min-height: 350px;
  height: 100% !important;
}

.ace_editor.ace_autocomplete {
  width: 500px;
}

.ace_gutter-layer {
  background: var(--darker-light);
}

.editor-container:not(.editor-container--singleLine) {
  height: 100%;
}

.editor-container--singleLine .editor.input {
  height: initial !important;
  min-height: initial !important;
  padding: calc(2 * var(--margin-base));
}

.editor-container--singleLine .ace_hidden-cursors {
  opacity: 0;
}

.textarea {
  padding: 5px;
  background: transparent;
  border: 1px solid #aaa;
  border-radius: 5px;
  min-height: 100px;
  width: 800px;
  max-width: 100%;
}

label,
.toggle-label,
.radio-label,
.input-label,
.select-label {
  padding-right: var(--margin-base);
  color: #333;
  font-size: 0.75rem;
}

.panel {
  min-width: 920px;
}

.form :not(.form-row--multi) > .button {
  /* Line up with everything with a label */
  margin-left: 100px;
}

.form {
  overflow-x: auto;

  .radio-label,
  .input-label,
  .toggle-label,
  .select-label {
    display: inline-block;
    text-align: right;
    width: var(--label-width);
    padding-right: calc(2 * var(--margin-base));
    overflow-wrap: break-word;
  }

  .form-row .form-row,
  .form-row--collapse {
    .radio-label,
    .input-label,
    .toggle-label,
    .select-label {
      width: initial;
    }
  }

  .radio-wrapper .input-label {
    width: initial;
  }

  .form-row--multi {
    .input:not(:first-of-type) .input-label,
    .select:not(:first-of-type) .select-label,
    .select:not(:first-of-type) .toggle-label,
    .input:not(:first-of-type) .input-label {
      width: initial;
    }
  }
}

input,
input[type='date'],
input[type='time'] {
  font-family: var(--sans-serif);
}

input[type='radio'] {
  margin: 0;
  margin-left: 3px;
}

.radio {
  .input-label {
    padding-right: 5px;
  }

  .radio-element--selected .input-label {
    color: initial;
    font-size: initial;
  }

  &.radio--vertical {
    .radio-element {
      display: block;
      padding: 5px;
      text-align: right;
    }

    &:not(:last-of-type) {
      padding-bottom: calc(2 * var(--margin-base));
    }
  }

  &:not(.radio--vertical) .radio-element {
    padding-right: 30px;
  }
}

.toggle {
  display: inline-flex;
  align-items: center;

  input[type='checkbox'] {
    appearance: none;
    margin: 0;
  }

  .toggle-container {
    display: block;
    background: transparent;
    width: calc(
      calc(14px * 2) + 4px
    ); /* Twice the inner circle + border width */
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: calc(2 * var(--margin-base));
    margin-left: var(--margin-base);
    position: relative;
  }

  .toggle-mover {
    background: #777;
    height: 14px;
    width: 14px;
    border-radius: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: left 0.5s;
  }
}

.toggle input[type='checkbox']:checked + .toggle-container span.toggle-mover {
  left: 14px !important;
}

.editor-container .input,
input.input:not([type='radio']):not([type='file']),
label.input input:not([type='radio']):not([type='file']),
select.select,
label.select select {
  padding: 5px;
  border: 0;
  box-shadow: 0px 0px 3px var(--border-light);
  border-radius: 3px;
  background: var(--background-light);
  /* Since many inputs are within label, keep the label font size small and the input font size normal */
  font-size: initial;
  display: inline-block;
}

.editor-container .input:focus,
input.input:not([type='radio']):not([type='file']):focus,
label.input input:not([type='radio']):not([type='file']):focus,
select.select:focus,
label.select select:focus {
  box-shadow: 0 0 9px var(--border-light);
}

input + input[type='file'] {
  display: block;
  margin-top: var(--margin-base);
}

.input-invalid {
  padding-left: 5px;
  color: red;
  font-size: 0.75rem;
}

.form label.select select,
.form select.select,
.form label.input input,
.form input.input {
  max-width: 100%;
}

.horizontal-align-center {
  display: flex;
  justifyin-content: center;
}

.vertical-align-center {
  display: flex;
  align-items: center;
}

.vertical-align-baseline {
  display: flex;
  align-items: baseline;
}

.ml-1 {
  margin-left: var(--margin-base);
}

.pl-1 {
  padding-left: var(--margin-base);
}

.ml-2 {
  margin-left: calc(2 * var(--margin-base));
}

.mt-2 {
  margin-top: calc(2 * var(--margin-base));
}

.mb-1 {
  margin-bottom: var(--margin-base);
}

.mb-2 {
  margin-bottom: calc(2 * var(--margin-base));
}

.mr-1 {
  margin-right: var(--margin-base);
}

.flex {
  max-height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  align-content: center;
}

.flex--vertical {
  flex-direction: column;
}

.items-flex-end {
  align-items: flex-end;
}

.block {
  display: block;
}

.clickable {
  cursor: pointer;
  cursor: hand;
}

.button {
  outline: 0;
  padding: 5px;
  cursor: pointer;
  cursor: hand;
  border-radius: 3px;
  box-shadow: 0px 0px 3px var(--border-light);
}

.button:not(.button--icon):hover {
  background: #f0f0f0;
}

.button--icon:hover {
  svg {
    stroke-width: 3;
  }
}

.button--primary {
  border-color: #3a005f;
  background: #9f04ff;
  color: white;
}

.button--primary:hover {
  background: #56008c;
}

.button--icon {
  box-shadow: initial;
  border: 0;
  background: transparent;
  color: #777;
  padding: 0;

  svg {
    height: 18px;
    width: 18px;
  }

  &.button--outline {
    padding: 2px;
    border: 1px solid var(--border-light);
  }
}

.input input:disabled,
.input:disabled,
.button:not(.button--icon):disabled,
.button:not(.button--icon):disabled:hover {
  background: #ccc !important;
  box-shadow: none !important;
  color: #999;
  cursor: not-allowed;
  pointer-events: all !important;
}

.button.button--primary.button--icon {
  background: transparent;
  color: #9f04ff;
}

.button.button--icon:disabled,
.button.button--icon:disabled:hover {
  cursor: not-allowed;
  pointer-events: all !important;
  color: #ccc;
}

.flex-right {
  margin-left: auto;
}

.title {
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #777;
  padding-bottom: calc(2 * var(--margin-base));
  white-space: nowrap;
}

.pages--empty {
  margin-top: 100px;

  .iframe-wrapper {
    text-align: center;
    margin: calc(2 * var(--margin-base)) 0;
  }

  p {
    max-width: 500px;
    line-height: 1.5rem;
    margin: var(--margin-base) auto;
  }

  .learn {
    margin-top: calc(4 * var(--margin-base));
  }
}

.pages--empty .button--primary {
  margin-right: 10px;
  display: inline-block;
}

.section-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  background: var(--darker-light);
}

.section-title .add-page {
  padding: var(--margin-base) calc(2 * var(--margin-base));
  background: transparent;
  border: 0;
  box-shadow: initial;
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
}

.section-subtitle {
  padding: calc(2 * var(--margin-base));
}

.section-subtitle .select:not(:last-of-type) {
  margin-right: calc(2 * var(--margin-base));
}

.navigation {
  border-right: 1px solid var(--border-light);

  .navigation-item {
    padding: calc(2 * var(--margin-base));

    svg {
      height: 25px;
      width: 25px;
    }
  }

  .navigation-item--active svg {
    color: #333;
  }
}

.sidebar {
  border-right: 1px solid var(--border-light);
  background: var(--background-light);
  min-width: 400px;
  background: #f9f9fd;
  padding: calc(2 * var(--margin-base));
  height: 100%;
  overflow-y: auto;
}

.sidebar--collapsed {
  min-width: initial;
}

.connector-group {
  display: inline-block;
  padding-bottom: 5px;
}

.servers {
  margin-top: 30px;
}

.servers,
.connectors {
  p {
    max-width: 300px;
    line-height: 1.1rem;
    font-size: 0.9rem;
  }
}

.server,
.connector {
  margin-bottom: calc(2 * var(--margin-base));
  padding: 10px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border-light);

  .connector-body,
  .server-body {
    overflow-x: auto;

    input,
    select {
      max-width: 250px;
    }
  }

  .radio-label,
  .input-label,
  .toggle-label,
  .select-label {
    display: inline-block;
    text-align: right;
    width: 100px; /* 200px should be more than enough for anyone */
  }
}

.server-delete button,
.connector-delete button {
  padding: 10px;
}

.server:hover .hover-button,
.server--expanded .hover-button,
.connector:hover .hover-button,
.connector--expanded .hover-button {
  visibility: initial;
}

.server:hover,
.connector:hover,
.server--expanded,
.connector--expanded {
  background: var(--background-light);
  border-color: var(--border-light);
}

.server-name,
.connector-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-x: hidden;
}

.server--expanded,
.connector--expanded {
  .connector-name,
  .server-name {
    width: 100%;
    margin-right: 10px;
  }
}

.pages {
  .page-name,
  .button.page-name {
    border-radius: 0;
    border: 0;
    box-shadow: initial;
    border-right: 1px solid #f9f9fd;
    padding: calc(2 * var(--margin-base));
    background: transparent;
  }

  .page-name--current {
    font-size: 1rem;
    padding: var(--margin-base) calc(2 * var(--margin-base));
    background: var(--background-light);

    .input {
      margin: 0 var(--margin-base);
    }
  }
}

.page-mode {
  padding-right: calc(2 * var(--margin-base));
  text-decoration: none;
  color: black;
}

.page-mode:hover,
.page-mode:visited,
.page-mode:focus {
  color: black;
}

.page-mode--on {
  font-weight: bold;
}

.card,
.panel {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  margin: calc(2 * var(--margin-base));
}

.panel {
  transition: all 0.5s;
}

.panel--fullscreen {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 16;
  height: 100%;
  width: 100%;
  margin: 0;
  border: 0;
  display: flex;
  flex-direction: column;

  .panel-header {
    border: 0;
  }

  .panel-body-container {
    flex: 1;

    .flex {
      height: 100%;
      flex-direction: column;
    }

    .panel-out {
      width: initial;
      height: 400px;
    }
  }
}

.panel--loading {
  animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
  0% {
    background: var(--background-light);
  }

  50% {
    background: #fcf6ff;
  }
}

.panel--hidden {
  border-color: var(--border-light);
}

.panel-type,
.connector-type {
  color: #777;
  padding-right: calc(2 * var(--margin-base));
}

.panel-head {
  padding: var(--margin-base);
  background: #f9f9fd;
  border-bottom: 1px solid var(--border-light);
}

.panel--hidden .panel-head,
.panel--empty .panel-head {
  border-bottom: 0;
}

.panel-header--open {
  padding-bottom: var(--margin-base);
  border-bottom: 1px solid var(--border-light);
}

.panel-body-container {
  overflow: auto;
}

.panel-controls .button {
  margin-left: calc(2 * var(--margin-base));
}

.panel-details {
  margin: calc(2 * var(--margin-base)) auto 0 auto;
  max-width: 1024px;
}

.panel-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Without this resizing the window smaller doesn't work, a scrollbar appears */
  max-width: 100%;
  /* Same for height */
  max-height: 100%;

  /* Defaults to overflowing into .status-bar */
  overflow: auto;
}

.panel-order {
  width: 30px;
  margin-right: calc(2 * var(--margin-base));
  margin-left: 5px;
}

.panel-out {
  background: #333;
  color: white;
  width: 400px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.panel-out-header {
  background: #f9f9fd;
}

.panel--empty .panel-out {
  width: 100%;
  max-width: 100%;
}

.panel-out-header button.button {
  border: 0 !important;
  box-shadow: initial !important;
  background: 0;
  padding: 5px calc(2 * var(--margin-base));
  border-radius: 0;
  display: inline-flex;
  align-items: center;

  svg {
    height: 15px;
    width: 15px;
  }

  .warning svg {
    color: red;
  }
}

.panel-out-header .button.selected {
  border: 1px solid white;
  border-bottom: 0;
  background: #333;
  color: white;
}

.panel-preview {
  overflow: auto;
  height: 100%;
}

.panel-preview-results {
  margin: 5px;
  font-size: 0.9rem;

  pre {
    background: transparent !important;
  }
}

.panel-out .button:disabled {
  background: transparent;
  color: white;
}

.panel--empty .panel-body {
  display: none;
}

.status-bar {
  border-top: 1px solid var(--border-light);
  background: #f9f9fd;
  font-size: 0.9rem;
  color: #555;
  padding: 5px;

  .status-bar-element {
    padding-left: 15px;

    label {
      color: #777;
      padding-right: 0;
    }
  }
}

.new-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: calc(2 * var(--margin-base)) 0;
}

.new-panel-short {
  margin-left: var(--margin-base);
}

.card p {
  max-width: 800px;
}

.text-muted {
  font-size: 0.9rem;
  color: #777;
}

.tooltip {
  font-size: 0.9rem;
}

.tooltip-body {
  position: absolute;
  top: 24px;
  left: 0;
  display: none;
  background: rgba(30, 30, 30, 0.75);
  border: 1px solid black;
  color: white;
  padding: 10px;
  z-index: 1;
  max-width: 400px;
  box-shadow: 0 1px 3px 0 #aaa;
}

.tooltip-icon {
  color: #ccc;
  cursor: pointer;
  cursor: hand;
  padding-left: 5px;
}

.tooltip:hover .tooltip-body {
  display: initial;
}

.tooltip:hover .tooltip-icon {
  color: initial;
}

.alert {
  padding: calc(2 * var(--margin-base));
  font-size: 0.75rem;
  overflow-wrap: anywhere;

  pre {
    white-space: pre-wrap;
  }

  a {
    padding: 0 2px;
  }

  p code {
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 3px;
    padding: 3px;
    line-height: 26px;
  }
}

.alert > svg {
  height: 30px;
  width: 30px;
  margin-right: calc(2 * var(--margin-base));
  color: #555;
}

.alert.alert-fatal {
  font-size: initial;
}

.alert-warning {
  background: #fff4e7;
  border: 1px solid #ffc0c0;
}

.alert-error {
  background: #ffe7e7;
  border: 1px solid #ffc0c0;
}

.alert-info {
  background: #e7f7ff;
  border: 1px solid #c0f0ff;
}

.share {
  position: relative;
}

.share-details {
  display: none;
  position: absolute;
  top: 30px;
  right: 1px;
  background: var(--background-light);
  border: 1px solid var(--border-light);
  padding: calc(2 * var(--margin-base));
  width: 400px;
  color: black;
}

.share-details a {
  color: blue;
  margin: 0;
}

.share:focus-within .share-details {
  display: block;
}

.share-details input {
  border: 1px solid;
  width: 100%;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-light {
  color: #777;
}

.text-success {
  color: var(--green);
}

.text-failure {
  color: #a00505;
}

.form-group {
  padding: 10px 0;

  .form-group-label {
    font-size: initial;
  }

  .form-group-children {
    padding: 10px;
  }
}

.form-group--major {
  .form-group-label {
    font-size: larger;
    font-weight: bold;
  }
}

.form-row {
  padding: var(--margin-base) 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding: 30px 0;
}

.table,
canvas {
  max-height: 100%;
  padding: 0 calc(2 * var(--margin-base));
  margin: 30px auto;
}

.table--small,
.canvas--small {
  width: 1024px !important;
  max-width: 100%;
}

.table--medium,
.canvas--medium {
  width: 75% !important;
}

.table--large,
.canvas--large {
  width: 100% !important;
}

.table-controls {
  padding: var(--margin-base);
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
}

.modal-body {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  padding: calc(2 * var(--margin-base));
}

.card {
  padding: calc(2 * var(--margin-base));
  height: min-content;
}

.project-name {
  width: 500px;
  margin: 0 auto;
  margin-top: calc(2 * var(--margin-base));

  .select select {
    max-width: 300px !important;
  }
}

.card--full {
  width: 100%;
}

.card--center {
  margin-left: auto;
  margin-right: auto;
}

.project-name .input,
.project-name .input input,
.project-name .button {
  width: 100%;
  padding: calc(2 * var(--margin-base));
}

.project-existing {
  border-top: 1px solid var(--border-light);
  padding-top: calc(2 * var(--margin-base));
  margin-top: calc(2 * var(--margin-base));

  .project-selector,
  .project-timestamp {
    margin: 0;
    margin-right: calc(2 * var(--margin-base));
  }
}

.table {
  border-collapse: collapse;

  th {
    text-align: left;
  }

  th,
  td {
    padding: 5px;
  }
}

tbody tr {
  border-top: 1px solid var(--darker-light);
}

.confirm-wrapper {
  display: inline-block;
}

.confirm {
  position: relative;
}

.confirm-popup {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 4;
  padding: calc(2 * var(--margin-base));
  min-width: 200px;
  background: var(--background-light);
  box-shadow: 0 1px 3px 0 #aaa;
  border: 1px solid var(--border-light);
  font-size: 1rem;
}

.confirm-popup .button + .button {
  display: inline-block;
  margin-left: calc(2 * var(--margin-base));
}

.confirm-popup--open {
  display: block;
}

.confirm-popup--right {
  left: 0;
  right: unset;
}

.dropdown {
  position: relative;

  a {
    color: blue;
    font-size: initial;
  }

  p,
  .dropdown-anchor a {
    font-size: 0.75rem;
  }
}

.dropdown-body {
  display: none;
  z-index: 15;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  padding: calc(2 * var(--margin-base));
  background: var(--background-light);
  width: 300px;
  box-shadow: 0 1px 3px 0 #aaa;
  max-height: 500px;
  overflow: auto;
}

.dropdown-section:not(:last-of-type) {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: calc(2 * var(--margin-base));
}

.dropdown-sectionName {
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #999;
}

.dropdown-item {
  padding-top: calc(2 * var(--margin-base));
}

.dropdown.dropdown--open .dropdown-body {
  display: initial;
}

.settings {
  .alert {
    max-width: 600px;
  }
}

.dropdown.add-panel {
  .dropdown-body {
    width: 200px;
  }

  .dropdown-section {
    border-bottom: 0;
  }

  .dropdown-item {
    padding-top: var(--margin-base);

    .button {
      width: 100%;
      border: 0;
      box-shadow: none;
      text-align: left;
    }
  }
}

.value {
  .value-part {
    display: flex;
    align-items: baseline;
  }
}

/* DARK MODE RULES */

body.dark {
  background: var(--background-dark);
  color: var(--color-dark);

  a,
  a:visited,
  a:focus,
  a:hover {
    color: var(--color-dark);
  }

  .editor-container .input,
  input.input:not([type='radio']):not([type='file']),
  label.input input:not([type='radio']):not([type='file']),
  select.select,
  label.select select {
    background: #38384c;
    border: 1px solid var(--border-dark);
    box-shadow: 0px 0px 3px var(--border-dark);
    outline: var(--border-dark);
    color: var(--color-dark);
  }

  .editor-container .input:focus,
  input.input:not([type='radio']):not([type='file']):focus,
  label.input input:not([type='radio']):not([type='file']):focus,
  select.select:focus,
  label.select select:focus {
    box-shadow: 0 0 9px var(--border-dark);
  }

  .server:hover,
  .connector:hover,
  .server--expanded,
  .connector--expanded {
    background: #484860;
    border-color: var(--border-dark);
  }

  .tooltip-icon:hover {
    color: white;
  }

  .button:hover {
    background: #383852;
  }

  tbody tr {
    border-top-color: var(--lighter-dark);
  }

  .app--desktop,
  .app--server {
    border: 0;
    height: 100%;
  }

  header {
    background: #29293c;
    border-bottom-color: var(--border-dark);
  }

  header a {
    color: var(--color-dark);
  }

  .button {
    border: 1px solid var(--border-dark);
    background: #4a4a6a;
    color: #ddd;
    box-shadow: 0px 0px 3px var(--border-dark);
  }

  .button.button--icon {
    border: 0;
    box-shadow: initial;
    background: transparent;
    color: #999;
    padding: 0;

    &.button--outline {
      border-color: var(--border-dark);
    }
  }

  .button.button--icon.button--primary {
    color: var(--green);
  }

  .page-name--current {
    background: var(--background-dark);
    border-right: 0;
  }

  .dropdown-item a {
    color: #61b6ff;
  }

  .ace_gutter-layer,
  .section-title {
    background: var(--gutter-dark);
  }

  .dropdown-body {
    background: var(--background-dark);
    box-shadow: 0 1px 3px 0 #5c5c97;
  }

  .section-title > .button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: initial;
  }

  .alert,
  .panel-out {
    background: #181824;
  }

  .alert-warning,
  .alert-error,
  .alert-fatal,
  .alert-info {
    border-color: black;
  }

  .ace_layer.ace_marker-layer .ace_active-line,
  .ace_layer.ace_marker-layer .ace_selection {
    background: rgba(0, 0, 0, 0.5);
  }

  .panel,
  .editor {
    background: var(--background-dark);
  }

  .panel {
    border-color: var(--border-dark);
  }

  .editor {
    color: var(--color-dark);
  }

  .panel-head {
    border-bottom: 1px solid var(--border-dark);
    background: var(--lighter-dark);
  }

  .panel-header--open {
    border-bottom: 1px solid var(--border-dark);
  }

  .pages {
    .button.page-name {
      border-right: 1px solid var(--border-dark);
    }
  }

  .panel-out-header {
    background: #31314e;
  }

  .panel-out-header .button {
    background: transparent;
  }

  .panel-out-header .button.selected {
    background: #181824;
    color: var(--color-dark);
  }

  label,
  .radio-label,
  .input-label,
  .select-label,
  .text-muted,
  .toggle-label,
  .title {
    color: #999;
  }

  .radio .radio-element--selected .input-label {
    color: var(--color-dark);
  }

  header .toggle .toggle-container {
    border-color: #31314e;
  }

  .toggle .toggle-mover {
    background: #999;
  }

  .card,
  .sidebar,
  .status-bar {
    background: var(--lighter-dark);
    border-color: var(--border-dark);
  }

  .server,
  .connector {
    border-bottom-color: var(--border-dark);
    color: var(--color-dark);
  }

  .tooltip-body,
  .confirm-popup {
    background: #29293c;
    color: var(--color-dark);
    border-color: var(--border-dark);
    box-shadow: 0 1px 3px 0 #111;
  }

  .project-existing {
    border-color: var(--border-dark);
  }

  .input-invalid,
  .text-failure {
    color: #e35172;
  }

  .header-project-name,
  .dropdown-sectionName,
  .dropdown p {
    color: var(--color-dark);
  }

  .navigation {
    border-color: var(--border-dark);
  }

  .navigation-item--active svg {
    color: var(--color-dark);
  }

  .status-bar {
    color: var(--color-dark);
  }
}

@media only screen and (max-width: 600px) {
  .panel {
    min-width: initial;
  }
}
